package com.example.shoppingdemo.RKL;

import com.example.shoppingdemo.RKL.Bean.AmendBean;
import com.example.shoppingdemo.RKL.Bean.MsgBean;
import com.example.shoppingdemo.RKL.Bean.loginBean;
import com.example.shoppingdemo.RKL.Bean.siginBean;
import com.example.shoppingdemo.RKL.Model.LoginModel;
import com.example.shoppingdemo.nslcommodity.returnsbean.ReturnsResult;

import okhttp3.FormBody;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.POST;
import retrofit2.http.Query;
import rx.Observable;

public interface LoginAndSigin {
    //短信验证
    @POST("/api/v1/user/sendValideCode")
    Observable<MsgBean> requestMsgList(@Query("phone")String phone);
    //注册
    @POST("/api/v1/user/reg")
    Observable<siginBean> requestSiginList(@Body FormBody body);
    //登录
    @POST("/api/v1/user/logins")
    Observable<loginBean> requestLoginList(@Body FormBody body);
    //修改密码
    @POST("/api/v1/user/changePwd")
    Observable<AmendBean> requestAmendList(@Body FormBody body);
}
